import request from '@/utils/request'

// 添加入职记录
export function addPersonEntry(data) {
  return request({
    url: '/entryRegistration/add',
    method: 'POST',
    data
  })
}

// 删除入职记录
export function deletePersonEntry(data) {
  return request({
    url: '/entryRegistration/delete',
    method: 'post',
    data
  })
}

// 列表、分页入职记录模块.........
export function getPersonEntryList(params) {
  return request({
    url: '/entryRegistration/list',
    method: 'POST',
    params
  })
}

// 查询人事调动与离职记录
export function selectPersonEntry(params) {
  return request({
    url: '/entryRegistration/load',
    method: 'POST',
    params
  })
}
// 修改人事调动与离职记录
export function updatePersonEntry(data) {
  return request({
    url: '/entryRegistration/update',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}
